
// 在这里定义首页模块的ts类型
// 接口返回的数据类型
export interface ResponseData{
  code: number,
  message: string,
  ok:boolean
}

// 已有医院数据的类型
export interface hospital{
  "id": string,
  "createTime": string,
  "updateTime": string,
  "isDeleted": number,
  "param": {
    "hostypeString": string,
    "fullAddress":string
  },
  "hoscode": string,
  "hosname": string,
  "hostype": string,
  "provinceCode": string,
  "cityCode": string,
  "districtCode": string,
  "address": string,
  "logoData": string,
  "intro": string,
  "route": string,
  "status": number,
  "bookingRule": {
    "cycle": number,
    "releaseTime": string,
    "stopTime": string,
    "quitDay": number,
    "quitTime": string,
    "rule":string[]
  }
}

export type Content = hospital[];
// 已有医院接口返回的数据
export interface HospitalResponseData extends ResponseData{
  data: {
    code: number,
    data:[],
    content: Content,
    "pageable": {
      "sort": {
        "sorted": boolean,
        "unsorted": boolean,
        "empty":boolean
      },
      "pageNumber": number,
      "pageSize": number,
      "offset": number,
      "paged": boolean,
      "unpaged":boolean
    },
    "totalPages": number,
    "totalElements": number,
    "last": boolean,
    "first": boolean,
    "sort": {
      "sorted": boolean,
      "unsorted": boolean,
      "empty":boolean
    },
    "numberOfElements": number,
    "size": number,
    "number":number
  }
}

// 已有等级和地区类型
export interface level_region extends ResponseData{
"id":number,
"createTime": string,
"dictCode": string,
"hasChildren":boolean,
"isDeleted": number,
"name": string,
"param": {},
"parentId": number,
"updateTime": string,
"value": string
}
// 返回的数组类型
export type HospitalLevelRegionArr = level_region[]
// 返回的数据类型
export interface HospitalLevelRegionResData extends level_region{
  data:HospitalLevelRegionArr
} 